package com.godGuang.mapper;

import com.godGuang.domain.Video;
import com.godGuang.domain.request.VideoRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : 段敏强
 * @className : HealthVideoMapper
 * @description : 描述说明该类的功能
 * @createTime : 2024/01/16 09:16
 */

/**
 * 健康视频Mapper接口
 */


@Mapper
public interface HealthVideoMapper {
    /**
     * 将视频插入到视频列表中
     *
     * @param video 要插入的视频
     */
    void insert(Video video);

    List<Video> healthVideoList(@Param("videoName") String videoName);

    List<Video> healthVideoListById(@Param("userId") Integer userId);

    List<Video> healthVideoById(@Param("videoId") Integer videoId);

    void healthVideoDelete(@Param("videoDelete") Integer videoDelete, @Param("videoId") String videoId);

    void preferenceAdd(VideoRequest videoRequest);

    List<Video> healthVideoByIds(@Param("userId") String userId);

    void preferenceDelete(VideoRequest videoRequest);

    List<Video> preferenceById(VideoRequest videoRequest);
}
